package com.sky.service;

import com.sky.dto.CategoryPageQueryDTO;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishOverViewVO;

import java.util.List;

public interface DishService {
    //分页
    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);
    //增
    void addDish(DishDTO dishDTO);
    //查询菜品名
    Long getDishIdByName(String name);
    //获取菜品的id
    Dish getDishById(Long id);
    //修改菜品信息
    void reviseDishInfo(DishDTO dishDTO);
    //修改状态
    void stopAndStart(Integer status, Integer id);
    //删除
    void deleteDish(List<Long> ids);
    List<Dish> getDishList(Long id);


    DishOverViewVO getDishOver();
}
